<template>
  <tab-bar>
    <tab-bar-item path="/Home" >
      <template v-slot:item-icon>
        <img  src="~assets/images/tabbar/home.svg" alt="">
      </template>
      <template v-slot:item-icon2>
        <img  src="~assets/images/tabbar/home_active.svg" alt="">
      </template>
      <template v-slot:item-text>
        <div>首页</div>
      </template>
    </tab-bar-item >
    <tab-bar-item path="/shop">
      <template v-slot:item-icon>
        <img  src="~assets/images/tabbar/category.svg" alt="">
      </template>
      <template v-slot:item-icon2>
        <img  src="~assets/images/tabbar/category_active.svg" alt="">
      </template>
      <template v-slot:item-text>
        <div>分类</div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/ShopCart">
      <template v-slot:item-icon>
        <img  src="~assets/images/tabbar/shopcart.svg" alt="">
      </template>
      <template v-slot:item-icon2>
        <img  src="~assets/images/tabbar/shopcart_active.svg" alt="">
      </template>
      <template v-slot:item-text>
        <div>购物车</div>
      </template>
    </tab-bar-item>
    <tab-bar-item path="/Profile">
      <template v-slot:item-icon>
        <img  src="~assets/images/tabbar/profile.svg" alt="">
      </template>
      <template v-slot:item-icon2>
        <img  src="~assets/images/tabbar/profile_active.svg" alt="">
      </template>
      <template v-slot:item-text>
        <div>我的</div>
      </template>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
import TabBar from "components/common/tabbar/TabBar";
import TabBarItem from "components/common/tabbar/TabBarItem";
export default {
name: "TabBarMain",
  components: {
    TabBar,
    TabBarItem,
  }
}
</script>

<style scoped>
.tab-bar-item img{
  width: 24px;
  height: 24px;
  vertical-align: bottom;
}
</style>
